package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.TrashRecordDetailsMapper;
import com.ruoyi.web.wx.entity.TrashRecordDetails;
import com.ruoyi.web.wx.service.ITrashRecordDetailsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 预约记录详情 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service
public class TrashRecordDetailsServiceImpl implements ITrashRecordDetailsService 
{
	@Autowired
	private TrashRecordDetailsMapper trashRecordDetailsMapper;

	/**
     * 查询预约记录详情信息
     * 
     * @param id 预约记录详情ID
     * @return 预约记录详情信息
     */
    @Override
	public TrashRecordDetails selectTrashRecordDetailsById(String id)
	{
	    return trashRecordDetailsMapper.selectTrashRecordDetailsById(id);
	}
	
	/**
     * 查询预约记录详情列表
     * 
     * @param trashRecordDetails 预约记录详情信息
     * @return 预约记录详情集合
     */
	@Override
	public List<TrashRecordDetails> selectTrashRecordDetailsList(TrashRecordDetails trashRecordDetails)
	{
	    return trashRecordDetailsMapper.selectTrashRecordDetailsList(trashRecordDetails);
	}
	
    /**
     * 新增预约记录详情
     * 
     * @param trashRecordDetails 预约记录详情信息
     * @return 结果
     */
	@Override
	public int insertTrashRecordDetails(TrashRecordDetails trashRecordDetails)
	{
	    return trashRecordDetailsMapper.insertTrashRecordDetails(trashRecordDetails);
	}
	
	/**
     * 修改预约记录详情
     * 
     * @param trashRecordDetails 预约记录详情信息
     * @return 结果
     */
	@Override
	public int updateTrashRecordDetails(TrashRecordDetails trashRecordDetails)
	{
	    return trashRecordDetailsMapper.updateTrashRecordDetails(trashRecordDetails);
	}

	/**
     * 删除预约记录详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTrashRecordDetailsByIds(String ids)
	{
		return trashRecordDetailsMapper.deleteTrashRecordDetailsByIds(Convert.toStrArray(ids));
	}
	
}
